//
//  RequestData.h
//  Movie
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol RequestFinishDelegate <NSObject>

- (void)requestSuccess:(NSData *)data;
- (void)requestError:(NSError *)error;

@end

@interface RequestData : NSObject

@property (nonatomic , assign)id<RequestFinishDelegate>delegate;

- (void)requestWithUrl:(NSString *)url andDelegate:(id<RequestFinishDelegate>)delegate;

@end
